package pers.uang.crud.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pers.uang.crud.mapper.DepartmentMapper;
import pers.uang.crud.pojo.Department;
import pers.uang.crud.service.DepartmentService;

import java.util.List;

@Service
public class DepartmentServcieImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> getAllDepartment() {
        return departmentMapper.getAllDepartment();
    }
}
